package com.minimalist.common.entity.basic.enums;

/**
 * @author 11987
 */
public class NoticeEnum{

    /**
     * 公告处理异常信息
     */
    public enum ErrorMsg{
        NONENTITY_NOTICE("公告不存在"),
        ;
        private final String desc;

        ErrorMsg(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 公告类型
     */
    public enum NoticeType{
        NOTICE(1, "公告"),
        NEWS(2, "新闻"),
        ;
        private final Integer code;
        private final String desc;

        NoticeType(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

}
